#ifndef XCORR_H_
#define XCORR_H_

#define len 2048
#define detect_num 20
#define double_detect_num 40

extern unsigned short x[2][len];
extern unsigned short y[2][len];
extern unsigned short z[2][len];
extern unsigned short n[2][len];
extern uint8 AdcBuffindex;
extern uint8 adcindex;

uint8 position_calculate(int*Mic12_Delaytime);
int xcorr(void);
void Xcorr_adc(void);
void Xcor_MIC(void);

#endif 
